package com.hducms.cms.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.hducms.cms.entity.main.Channel;
import com.hducms.cms.entity.main.ChannelExt;
import com.hducms.cms.entity.main.CmsGroup;
import com.hducms.cms.entity.main.CmsModel;
import com.hducms.cms.entity.main.CmsUser;


public interface ChannelDao {

	List<Channel> getTopList(Map<String, Object> params);

	List<Channel> getChildList(Map<String, Object> params);

	Channel findById(Integer id);

	void save(Channel bean);

	void updatetree(int value);

	int getMaxRgt();

	List<Channel> getChildListByRight(Map<String, Object> param);

	List<Channel> getTopListByRigth(Map<String, Object> param);

	void updateParetntree(int rgt);

	void deleteById(Integer id);
	void deleteVById(Integer id);
	void deleteCById(Integer id);

	int countByChannelId(Integer channelId);

	void saveViewGroup(Map<String, Object> params);

	void saveContriGroup(Map<String, Object> params);

	void saveChannelModel(Map<String, Object> params);

	void saveChannelUser(Map<String, Object> params);

	CmsGroup findViewGroupById(Integer id);

	CmsGroup findContriGroupById(Integer id);

	Integer[] findViewGroupIdById(Integer id);

	Integer[] findContriGroupIdById(Integer id);

	Integer[] findUserIdById(int id);

	CmsUser findUserById(Integer id);

	void update(Channel bean);

	//	void deleteViewGroupsById(Integer id);

	//	void insertViewGroupsById(Map<String, Object> params);

	//	void deleteContriGroupsById(Integer id);

	//	void insertContriGroupsById(Map<String, Object> params);

	void deleteUserById(Integer id);

	CmsModel findModelByid(int id);

	void deleteChannelUsers(Integer id);

	ChannelExt getChannelName(Integer id);

	Integer[] findViewChannelIdsByGroupId(int id);
}
